package com.example.haojiutao.service.impl;

import com.example.haojiutao.mapper.GoodsBannerMapper;
import com.example.haojiutao.model.domain.GoodsBanner;
import com.example.haojiutao.service.GoodsBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description: 查询所有商品轮播图
 * @Author: ma_jun
 * @CreateTime: 2023/12/12 15:35
 */
@Service
public class GoodsBannerServiceImpl implements GoodsBannerService {
    @Autowired
    private GoodsBannerMapper goodsBannerMapper;

    @Override
    public List<GoodsBanner> selectById(Integer goodsId) {
        List<GoodsBanner> goodsBanner = goodsBannerMapper.selectById(goodsId);
        return goodsBanner;
    }
}
